package com.extendsClassDemo;

public class human {
    protected String name;
    private int age;
    private double height;
    private double weight;
    public final  static String food ="rice";
    public void human(){
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    public void Myinfo(){
        System.out.println("名字："+name+"年龄："+
                age+"身高："+height+"体重"+weight);
    }
    public void food(){
        System.out.println("父类");
    }
}
